package cn.ycc1.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Title:
 * @Author ycc
 * @Date 2023/7/8 18:47
 */
@Data
@TableName("user")
public class User {
    private Long id;
    private String username;
    private String password;
    private String email;

    public boolean isAdmin() {
        return this.getId() == 1;
    }
}
